package cn.btks.databasehandler.basic.service.impl;

import cn.btks.databasehandler.basic.pojo.DBBasic;
import cn.btks.databasehandler.basic.repository.DBBasicRepository;
import cn.btks.databasehandler.basic.service.DBBasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lijun
 * @Date 2020/12/30 17:13
 */
@Service
public class DBBasicServiceImpl implements DBBasicService {

    @Autowired
    DBBasicRepository dbBasicRepository;

    @Override
    public List<DBBasic> findAll() {
        return dbBasicRepository.findAll();
    }

    @Override
    public List<DBBasic> findByIsDB(Integer isDB) {
        return dbBasicRepository.findAllByIsDB(isDB);
    }
}
